package yuejian_07.yuejian_07.service;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
<<<<<<< HEAD
import yuejian_07.yuejian_07.javabean.Activities;
import yuejian_07.yuejian_07.javabean.Contest;
import yuejian_07.yuejian_07.javabean.Master;
import yuejian_07.yuejian_07.javabean.Show;
=======
import yuejian_07.yuejian_07.javabean.EnterActBean;
import yuejian_07.yuejian_07.javabean.EnterTrainBean;
>>>>>>> 9cbb853725830abfea6e866ce1cbf3c925de3bcd
import yuejian_07.yuejian_07.javabean.User;

//import yuejian_07.yuejian_07.javabean.OrderBean;
//import cn.gs922.NeuFood.javabean.success;



/**
 * Created by Shuaier on 2017/4/10.
 */

public interface UserService {
    @GET("User/getUserLogin")
<<<<<<< HEAD
    Call<User> userLogin(
            @Query("user_name") String username,
            @Query("user_password") String password);
    @GET("User/getUserInfo")
    Call<User> getUserById(
            @Query("user_id") int user_id
    );
    @GET("User/getUserRegister")
    Call<User> userRegister(@Query("user_name") String user_name,
                            @Query("user_password") String user_password,
                            @Query("user_phone") String user_phone,
                            @Query("user_intro") String user_intro);
    @GET("User/getUserInfo")
    Call<User> getUserInfo(@Query("user_id") int user_id
=======
    Call<User> userLogin(@Query("user_name") String username,
                         @Query("user_password") String password);
    @GET("userRegister.do")
    Call<User> userRegister(@Query("username") String username,
                            @Query("userpass") String password,
                            @Query("mobilenum") String mobilenum,
                            @Query("address") String address,
                            @Query("comment") String comment);

        @GET("User/getUserInfo")
        Call<User> getUserById(
                @Query("user_id") int user_id
        );
    @GET("updateUserById")
    Call<List<User>> getUpdateUserById(
            @Query("user_id")int user_id,
            @Query("username")String username,
            @Query("userpass")String userpass,
            @Query("mobilenum")String mobilenum,
            @Query("address")String address
>>>>>>> 9cbb853725830abfea6e866ce1cbf3c925de3bcd
    );
    @GET("Activity/getMyActOrderlist")
    Call<List<EnterActBean>> getMyActOrderlist(@Query("user_id") int user_id
    );
    //培训订单列表
    @GET("Train/getMyTrainOrderlist")
    Call<List<EnterTrainBean>> getMyTrainOrderlist(@Query("user_id") int user_id
    );
    @GET("User/getUserInfo")
    Call<User> getUserInfo(@Query("user_id") int user_id
    );

    @GET("User/edituser")
    Call<User> edituser(@Query("user_id") int user_id
    );

    @GET("User/updateuser")
    Call<User> updateuser(@Query("user_id") int user_id,
                          @Query("user_name") String user_name,
                          @Query("user_password") String user_password,
                          @Query("user_phone") String user_phone

    );
//    //活动订单列表
//    @GET("Activity/getMyActOrderlist")
//    Call<List<EnterActBean>> getMyActOrderlist(@Query("user_id") int user_id
//    );
//
//    //培训订单列表
//    @GET("Train/getMyTrainOrderlist")
//    Call<List<EnterTrainBean>> getMyTrainOrderlist(@Query("user_id") int user_id
//    );

    //我的帖子列表
    @GET("User/getMypostlist")
    Call<List<Show>> getMypostlist(@Query("user_id") int user_id
    );


    //我关注的user列表
    @GET("User/getMyCollectUsers")
    Call<List<User>> getMyCollectUsers(@Query("user_id") int user_id,
                                       @Query("flag") String flag);

    //我关注的act列表
    @GET("User/getMyCollectActivity")
    Call<List<Activities>> getMyCollectActivity(@Query("user_id") int user_id,
                                                @Query("flag") String flag);

    //我关注的master列表
    @GET("User/getMyCollectMaster")
    Call<List<Master>> getMyCollectMaster(@Query("user_id") int user_id,
                                          @Query("flag") String flag);

    //我关注的match列表
    @GET("User/getMyCollectMatch")
    Call<List<Contest>> getMyCollectMatch(@Query("user_id") int user_id,
                                          @Query("flag") String flag);

}
